package com.css.crm.service;

import com.css.crm.exception.SystemException;
import com.css.crm.vo.AbstractUser;

/**
 * Implementation class for LdapService to authenticate users and lookup email
 * addresses
 */
public interface LdapService {

	/**
	 * Authenticate users
	 * 
	 * @param user
	 *            - AbstractUser
	 * @return true if authentication passed
	 * @throws SystemException
	 */
	public boolean authenticate(AbstractUser user) throws SystemException;

	/**
	 * Lookup user's email address using hashtable
	 * 
	 * @param ldap
	 *            - String
	 * @return String that represents email address(null if no email address)
	 * 
	 */
	public String emailLookup(String ldap);

}
